﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace MyMeetup.Entities
{
    public interface IGroupSearchItem
    {
        string id { get; set; }
        string name { get; set; }
        string description { get; set; }
        string photo_url { get; set; }
        string short_link { get; set; }
        string state { get; set; }
        string zip { get; set; }
        string updated { get; set; }
        string group_urlname { get; set; }
        string join_info { get; set; }
        string daysleft { get; set; }
        string who { get; set; }
        string rating { get; set; }
        string join_mode { get; set; }
        string created { get; set; }
        string lat { get; set; }
        string visibility { get; set; }
        string group_photo_count { get; set; }
        string country { get; set; }
        string members { get; set; }
        string city { get; set; }
        string link { get; set; }
        string lon { get; set; }
        string organizer_id { get; set; }
        string organizer_name { get; set; }
        string organizerProfileURL { get; set; }
    }

    [DataContract]
    public partial class GroupSearchResults
    {
        [DataMember(Name="results")]
        public List<GroupSearchItem> Items { get; set; }
        [DataMember]
        public object meta { get; set; }
    }


    public partial class GroupSearchItem : IGroupSearchItem
    {
        public string id { get; set; }
        public string name { get; set; }
        public string description { get; set; }
        public string photo_url { get; set; }
        public string short_link { get; set; }
        public string state { get; set; }
        public string zip { get; set; }
        public string updated { get; set; }
        public string group_urlname { get; set; }
        public string daysleft { get; set; }
        public string who { get; set; }
        public string rating { get; set; }
        public string join_mode { get; set; }
        public string join_info { get; set; }
        public string created { get; set; }
        public string lat { get; set; }
        public string visibility { get; set; }
        public string group_photo_count { get; set; }
        public string country { get; set; }
        public string members { get; set; }
        public string city { get; set; }
        public string link { get; set; }
        public string lon { get; set; }
        public string organizer_id { get; set; }
        public string organizer_name { get; set; }
        public string organizerProfileURL { get; set; }
    
    }
}